﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using ZhimeiSoft.Framework.Common.Entity;

namespace ZhimeiSoft.Framework.Server.Connector.BLL.Interface
{
    public interface IUserBLL
    {
        /// <summary>
        /// 获取所有用户
        /// </summary>
        /// <returns>用户数据集</returns>
        DataSet GetAllUsers();

        /// <summary>
        /// 新增用户
        /// </summary>
        /// <param name="user">用户信息类</param>
        /// <returns>返回主键</returns>
        void InsertUser(UserEntity user);

        /// <summary>
        /// 更新用户
        /// </summary>
        /// <param name="user">用户信息类</param>
        void UpdateUser(UserEntity user);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="id">用户id</param>
        void DeleteUser(int id);
    }
}
